<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格数据显示</title>
</head>
<body>
<div style="margin:0 auto;
border:2px solid black;
width:700px;
padding:20px;">
    <table style="margin:0 auto;" cellspacing="0" cellpadding="5" border="1">
        <thead>
        <tr>
            <th>姓名</th>
            <th>成绩</th>
            <th>班级</th>
            <th>技术</th>
            <th>个人简介</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for c in content %}
        <tr>
            <td>{{c.username}}</td>
            <td>{{c.score}}</td>
            <td>{{c.classroom}}</td>
            <td>{{c.skills}}</td>
            <td>{{c.desc}}</td>
            <td>
                <!--<a href="{% url 'del' c.username %}">删除</a>-->
                <!--<a href="{% url 'edit' c.username %}">修改</a>-->
                <a href="delete/{{c.username}}/">删除</a>
                <a href="edit/{{c.username}}/">修改</a>
            </td>
        </tr>
        {% endfor %}
        </tbody>
        <a href="/add">添加</a>|<a href="/search">查询</a>
    </table>
</div>
</body>
</html>